﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using ToWaTimeReportMVC4.Models;

namespace ToWaTimeReportMVC4.Controllers
{
    [Authorize]
    public class HomeController : Controller
    {

        ToWaService service = new ToWaService();

        public ActionResult Index()
        {
            ViewBag.Message = service.GetTypeOfUserByUsername(User.Identity.Name) + " " + User.Identity.Name;

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your quintessential app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your quintessential contact page.";

            return View();
        }
    }
}
